

// Vuex 允许我们将 store 分割成模块

export const city = {
    namespaced: true,  // 开启命名空间 
    state:()=>{
        return {
            name:"wuhan",
            id:"027",
            text:"武汉"
        }
    },
    mutations:{
        changeCityName(state,payload){
            state.name = payload;
        }
    },
    actions:{

    },
    getters:{

    },

}